const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function(app) {
    app.use(
  '/api',
  createProxyMiddleware({
    target: 'http://locahost://9000',// 设置目标 API 的地址
    changeOrigin: true, // 需要设置该选项为 true
  }),
);
}

// http://locahost:3000/api/table

//http://locahost://9000/table